'''
Created on 07.04.2012

@author: myaut
'''
import sys

sys.path.append('../../lib')

from salsa.ast import AST
from pycparser import CParser

test = ''' 
void f() {
    volatile asm ("mov x, y"
                  "test x"
                  : "x" (*z), "1" (m)
                  :
                  : "eax"
                );
}
'''

macros = {}

parser = CParser(macros_lookup_func = macros.get)
c_ast = parser.parse(test, filename='test.c', debuglevel=9)

c_ast.show()